/**
 * 功能描述
 *
 * @author: yekongyu
 * @date: 2023年01月09日 21:02
 */
package com.jiansu.controller;

import com.jiansu.entity.UnitDimension;
import com.jiansu.service.OcrImagesService;
import com.jiansu.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
@RequestMapping("/ocrImage/file")
public class OcrImagesController {

    @Autowired
    private OcrImagesService ocrImagesService;


    @PostMapping(value = "/add")
    public Result<UnitDimension> add(MultipartFile file) throws Exception {
        //文件上传
        return ocrImagesService.ocrImagesDiff(file);
    }



}
